﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.guide.actions {

    public class GAAllowQuests extends GuideAction {

        protected var m_value:Boolean = false;

        override public function createFromXml(_arg1:XML):Boolean{
            var _local2:XMLList = checkAndGetElement(_arg1, "allowquests");
            if (!_local2){
                return (false);
            };
            this.m_value = Boolean(_local2.@value);
            return (true);
        }
        override public function update(_arg1:Number):void{
            super.update(_arg1);
            if (Global.player != null){
                Global.player.setAllowQuests(this.m_value);
            };
            if (this.m_value){
                Global.hud.setTutorial(false);
                Global.questManager.refreshActiveIconQuests();
            };
            removeState(this);
        }

    }
}//package Modules.guide.actions 
